Optimal. Leaf size=48 \[ \frac {1}{9} \sqrt {9 x^2+12 x+4}-\frac {2 (3 x+2) \log (3 x+2)}{9 \sqrt {9 x^2+12 x+4}} \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 48, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {640, 608, 31} \begin {gather*} \frac {1}{9} \sqrt {9 x^2+12 x+4}-\frac {2 (3 x+2) \log (3 x+2)}{9 \sqrt {9 x^2+12 x+4}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 608
Rule 640
Rubi steps
\begin {align*} \int \frac {x}{\sqrt {4+12 x+9 x^2}} \, dx &=\frac {1}{9} \sqrt {4+12 x+9 x^2}-\frac {2}{3} \int \frac {1}{\sqrt {4+12 x+9 x^2}} \, dx\\ &=\frac {1}{9} \sqrt {4+12 x+9 x^2}-\frac {(2 (6+9 x)) \int \frac {1}{6+9 x} \, dx}{3 \sqrt {4+12 x+9 x^2}}\\ &=\frac {1}{9} \sqrt {4+12 x+9 x^2}-\frac {2 (2+3 x) \log (2+3 x)}{9 \sqrt {4+12 x+9 x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 33, normalized size = 0.69 \begin {gather*} \frac {(3 x+2) (3 x-2 \log (3 x+2)+2)}{9 \sqrt {(3 x+2)^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.10, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x}{\sqrt {4+12 x+9 x^2}} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.43, size = 12, normalized size = 0.25 \begin {gather*} \frac {1}{3} \, x - \frac {2}{9} \, \log \left (3 \, x + 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 25, normalized size = 0.52 \begin {gather*} \frac {1}{3} \, x \mathrm {sgn}\left (3 \, x + 2\right ) - \frac {2}{9} \, \log \left ({\left | 3 \, x + 2 \right |}\right ) \mathrm {sgn}\left (3 \, x + 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 29, normalized size = 0.60 \begin {gather*} -\frac {\left (3 x +2\right ) \left (-3 x +2 \ln \left (3 x +2\right )\right )}{9 \sqrt {\left (3 x +2\right )^{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 2.95, size = 21, normalized size = 0.44 \begin {gather*} \frac {1}{9} \, \sqrt {9 \, x^{2} + 12 \, x + 4} - \frac {2}{9} \, \log \left (x + \frac {2}{3}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.27, size = 32, normalized size = 0.67 \begin {gather*} \frac {\sqrt {9\,x^2+12\,x+4}}{9}-\frac {2\,\ln \left (x+\frac {\sqrt {{\left (3\,x+2\right )}^2}}{3}+\frac {2}{3}\right )}{9} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.10, size = 12, normalized size = 0.25 \begin {gather*} \frac {x}{3} - \frac {2 \log {\left (3 x + 2 \right )}}{9} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________